package com.sl.au.service;

import java.util.Date;
import java.util.List;

import com.sl.au.entity.VisitorReward;
import com.sl.au.repository.VisitorRewardRepository;

public interface VisitorRewardService extends BaseService {

	VisitorRewardRepository getRepository();

	int getUserSameCycleAndTypeCount(String userId, String registerId, Date begin, Date end);

	List<VisitorReward> findRewardByKeyAndCon(int start, int length, String key, String con);

	int findRewardCountByKeyAndCon(String key, String con);

	List<VisitorReward> findRewardOnlyKey(int start, int length, String key);

	int findRewardCountOnlyKey(String key);
	
	double getUserRewardByDate(String userId, Date begin, Date end);
}
